<!-- $Id: sendTrackbackLog.html 67 2011-03-26 13:06:51Z nicholasinlove1986@gmail.com $ -->
<include file="Public:pageheader"/>
<script type="text/javascript">
function sortBy(order,sort){
	location.href = "?order="+order+"&sort="+sort;
}
</script>
<form method="post" action="__URL__/dropTrackbackLog" name="listForm" onsubmit="return confirmSubmit_(this);">
  <div class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1">
      <tbody>
        <tr>
          <th><input type="checkbox" id="chkOpenAll" onclick="openAll(this)" />
            <a href="javascript:void(0)" onclick="javascript:sortBy('tbl_id','<if condition="$sort eq asc">desc<else/>asc</if>');" title="点击对列表排序">编号</a>
            <if condition="$sort eq asc"><img src="__PUBLIC__/Images/sort_asc.gif"/><else/><img src="__PUBLIC__/Images/sort_desc.gif"/></if></th>
        <th>发送日志</th>
		<th>发送目标地址</th>
		<th>发送时间</th>
        </tr>
        <volist name="list" id="vo">
          <tr>
            <td style="background-color: rgb(255, 255, 255);" width="8%" align="center"><input type="checkbox" id="key" name="key[]" onclick="openAll()" value="{$vo.tbl_id}" />{$vo.tbl_id}</td>
           <td style="background-color: rgb(255, 255, 255);" align="left" width="25%"><span><a href="{&blog_domain}posts/{$vo.posts_url}/" target="_blank">{$vo.posts_title|msubstr=0,25}</a></span></td>
            <td style="background-color: rgb(255, 255, 255);" align="left"><span><a href="{$vo.tbl_pingurl}" target="_blank">{$vo.tbl_pingurl|msubstr=0,55}</a></span></td>
            <td style="background-color: rgb(255, 255, 255);" align="center" width="15%"><span>{$vo.tbl_addtime|date='Y-m-d H:i:s',###}</span></td>     
          </tr>
        </volist>
        <tr>
          <td colspan="2">
		<select name="act" onchange="changeAction()">
        <option value="">请选择...</option>
        <option value="drop">移除</option>
		</select>
		  <input type="submit" value=" 确定 " id="btnSubmit" name="btnSubmit" class="button" disabled="true" /></td>
          <td style="background-color: rgb(255, 255, 255);" colspan="5" align="right" nowrap="true"><div class="{$pagestyle}" id="turn-page">{$page}</div></td>
        </tr>
      </tbody>
    </table>
  </div>
</form>

<script language="JavaScript">
function confirmSubmit_(frm, ext)
{
	if (frm.elements['act'].value == 'drop')
	{
	  
		return confirm("- 彻底删除发送记录将无法恢复.\r\n- 您确实要删除选中的发送记录吗?");
	  
	}
	else if (frm.elements['act'].value == '')
	{
		return false;
	}
	else
	{
		return true;
	}
}

function changeAction()
{
	var frm = document.forms['listForm'];
	
	if (!document.getElementById('btnSubmit').disabled && confirmSubmit_(frm, false))
	{
		frm.submit();
	}
}
</script>
<include file="Public:pagefooter"/> 